Number of Longest Increasing Subsequence python